package com.hc.demo;

import com.hc.demo.dto.CalendarResponseDto;
import com.hc.demo.service.CalendarService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
class Demo820ApplicationTests {

    @Autowired
    CalendarService calendarService;

    @Test
    void contextLoads() {

        List<CalendarResponseDto> calendarResponseDtoList=calendarService.getCalendarList30(1);

        for(CalendarResponseDto cr:calendarResponseDtoList){
            System.out.println(cr.getYmd()+","+cr.getRule()+","+cr.getRemainder());
        }
    }

}
